@echo off
echo Starting Simple Upload Server...
cd /d "C:\Users\Administrator\Documents\trae_projects\lt00001\magazine"

REM Try different Python commands
python simple_upload_server.py 2>nul
if %errorlevel% equ 0 goto :success

python3 simple_upload_server.py 2>nul
if %errorlevel% equ 0 goto :success

py simple_upload_server.py 2>nul
if %errorlevel% equ 0 goto :success

REM If all fail, show error
echo Failed to start server with any Python command
echo Please ensure Python is installed and accessible
pause
exit /b 1

:success
echo Server started successfully!
pause